package com.wsh.generator.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wsh.entity.generator.GenBaseConfEntity;
import com.wsh.generator.GenBaseConfService;
import com.wsh.mapper.generator.GenBaseConfDao;
import com.wsh.utils.PageUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
* @author wangsh
* @date 2020-02-16
*/
@Service
public class GenBaseConfServiceImpl extends ServiceImpl<GenBaseConfDao, GenBaseConfEntity> implements GenBaseConfService {

    @Override
    public IPage<GenBaseConfEntity> getList(Map<String, Object> params) {
        // 分页数据处理
        IPage<GenBaseConfEntity> pages = PageUtils.getPage(params);

        // 分页查询处理
        IPage<GenBaseConfEntity> page = baseMapper.selectPage(pages, new QueryWrapper<GenBaseConfEntity>());

        return page;
    }

}
